minetest.register_node(
	"dungeon:barrel",
	{
		description="Barrel",
		tiles={
			"dungeon_barrel.png^dungeon_barrel_top.png",
			"dungeon_barrel.png",
			"dungeon_barrel.png^dungeon_barrel_side.png",
			"dungeon_barrel.png^dungeon_barrel_side.png",
			"dungeon_barrel.png^dungeon_barrel_side.png",
			"dungeon_barrel.png^dungeon_barrel_side.png",
		},
		groups={choppy=2},
		drop="",
		sounds=default.node_sound_wood_defaults(),
		on_construct=function(pos)
			local meta=minetest.get_meta(pos)
			meta:set_string(
				"formspec",
				"size[8,9]"..
				"list[current_name;main;0,0;8,4;]"..
				"list[current_player;main;0,5;8,4;]"..
				"listring[]"
			)
			meta:set_string("infotext", "Barrel")
			meta:get_inventory():set_size("main",8*4)
		end,
		can_dig=function(pos,player)
			return minetest.get_meta(pos):get_inventory():is_empty("main")
		end
	}
)

minetest.register_node(
	"dungeon:pre_barrel",
	{
		description="Barrel",
		drawtype="plantlike",
		paramtype="light",
		sunlight_propagates=true,
		tiles={"dungeon_pre_barrel.png"},
		selection_box={
			type="fixed",
			fixed={-3/8, -0.5, -3/8, 3/8, 0.5, 3/8},
		},
		groups={not_in_creative_inventory=1},
		drop="",
		sounds=default.node_sound_wood_defaults(),
	}
)

minetest.register_node(
	"dungeon:maze",
	{
		description="Maze",
		tiles={"dungeon_maze.png"},
		groups={unbreakable=1,not_in_creative_inventory=1},
		diggable=false,
		can_dig=function() return false end,
		on_destruct=function()end,
		on_blast=function()end,
		is_ground_content=false
	}
)
